<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnSolutionInTaskWorkOrderTable extends AbstractMigration
{
    public function up()
    {
        $this->table('task_work_order')
            ->addColumn('solution', 'text', ['null' => true, 'comment' => '结果描述'])
            ->save();
    }

    public function down()
    {
        $this->table('task_work_order')->removeColumn('solution')->save();
    }
}
